﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{

    enum NPCtype
    {
        任务NPC,
        商贩NPC,
        铁匠NPC
    }
    abstract class NPC
    {
        private string name;
        private NPCtype npctype;
        public NPC() { }
        public NPC(string name, NPCtype npctype)
        {
            this.name = name;
            this.npctype = npctype;
        }
        public abstract void SayHello();

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public NPCtype NpcType
        {
            get { return this.npctype; }
            set { this.npctype = value; }
        }
    }
}

